﻿ @*
 * ---------------------------------------------------
 * 代码自动生成  请不要手动修改代码
 * 作者: MTQ 
 * 日期： 2016/5/21 7:39:33 
 * ---------------------------------------------------
 *@
   @model IEnumerable<MTQ.Model.B_Construct>    
    
   @{     
    ViewBag.Title = "Index"; 
    Layout = "~/Areas/Admin/Views/Shared/_LayoutManager.cshtml";    
    }    
   <script  type="text/javascript">     
        
        
        
 $(function () {    
    
     //新建按钮事件   
     $("input[name='btnCreate']").click(function () {   
      $("#B_ConstructCreate .modal-title").html("Create");  
      $("#B_ConstructCreate .modal-content").html("");   
      $("#B_ConstructCreate .modal-content").load("/Admin/B_Construct/Create?time=" + new Date().getMilliseconds(),function(){  
     $("#B_ConstructCreate").modal("toggle");  
       }); 
       
    });  
                                                     
                                                     
     $("[name='table_B_Construct']").bootstrapTable({}).on('click-cell.bs.table', function (e,field, value, row, $element) {                                                
            if (field == "selectColumn") {                                          
               return;                                      
            }                                         
             var guid = row["B_ConstructGuid"];                                         
             var url = "/Admin/B_Construct/Edit?primarykey=" + guid + "&times=" + new Date().getMilliseconds();                                         
              $("#B_ConstructCreate modal-title").html("Edit");                                        
              $("#B_ConstructCreate .modal-content").html("");                                      
              $("#B_ConstructCreate .modal-content").load(url,function(){    
              $("#B_ConstructCreate").modal("toggle");                                        
          });                                       
                                                     
       });                                              
                                                     
      $("input[name='btnDisable']").click(function () {                                               
           selectedRowChangeAvailable("B_ConstructGuid", "/Admin/B_Construct/ActivateB_Construct", $("table[name='table_B_Construct']"),"N");                                           
       });                                              
                                                     
                                                     
      $("input[name='btnEnable']").click(function () {                                               
           selectedRowChangeAvailable("B_ConstructGuid", "/Admin/B_Construct/ActivateB_Construct", $("table[name='table_B_Construct']"),"Y");                                           
       });                                              
                                                     
                                                     
   
 });   
   </script>     
   <!-- BEGIN PAGE HEADER-->     
    <div class="row-fluid">    
        <div class="span12">    
           <!-- BEGIN PAGE TITLE & BREADCRUMB-->     
           <ul class="breadcrumb">     
                <li>    
                     <i class="icon-home"></i>   
                    <a href="javascript:void(0)">B_Construct</a>    
                   <i class="icon-angle-right"></i>     
                 </li>   
                <li><a href="javascript:void(0)">Index</a></li>    
                <li class="pull-right no-text-shadow">    
                     <div id="dashboard-report-range" class="dashboard-date-range tooltips no-tooltip-on-touch-device responsive" data-tablet="" data-desktop="tooltips" data-placement="top" data-original-title="Change dashboard date range">   
                        <i class="icon-calendar"></i>    
                        <span></span>    
                        <i class="icon-angle-down"></i>    
                    </div>    
                </li>    
            </ul>    
             <!-- END PAGE TITLE & BREADCRUMB-->   
         </div>   
     </div>   
 <div class="container-fluid">
     <!-- END PAGE HEADER-->      
   <div class="row-fluid">     
    <table  data-toggle="table"   name="table_B_Construct"      data-cache="False"         data-sort-order="asc"    
    data-sort-name="B_ConstructId"    
    data-url="/B_Construct/Search"    
    data-side-pagination="server"    
    data-pagination="true"    
    data-page-list="[5, 10, 20, 50, 100, 200]"   
     data-page-size="10"   
     data-page-number="1"   
    data-smart-display="true"  data-click-to-select="false"   
     >    
        
         <thead>    
            <tr>   
  <th data-field="selectColumn" data-checkbox="true" data-formatter="actionFormatter" data-events="actionEvents"></th>  
        <th data-field="B_ConstructId" data-align="center"  data-sortable="true" data-halign="center"> @MTQ.BLL.B_LocalService.GetWord("B_ConstructId", @ViewBag.CultureInfoName)</th> 
        <th data-field="B_ConstructImage" data-align="center"  data-sortable="true" data-halign="center"> @MTQ.BLL.B_LocalService.GetWord("B_ConstructImage", @ViewBag.CultureInfoName)</th> 
        <th data-field="B_ConstructTitle" data-align="center"  data-sortable="true" data-halign="center"> @MTQ.BLL.B_LocalService.GetWord("B_ConstructTitle", @ViewBag.CultureInfoName)</th> 
        <th data-field="B_ConstructContent" data-align="center"  data-sortable="true" data-halign="center"> @MTQ.BLL.B_LocalService.GetWord("B_ConstructContent", @ViewBag.CultureInfoName)</th> 
        <th data-field="B_ConstructSort" data-align="center"  data-sortable="true" data-halign="center"> @MTQ.BLL.B_LocalService.GetWord("B_ConstructSort", @ViewBag.CultureInfoName)</th> 

        <th data-field="B_ConstructCreateTime" data-align="center"  data-formatter="dateFormatter"    data-sortable="true" data-halign="center"> @MTQ.BLL.B_LocalService.GetWord("B_ConstructCreateTime", @ViewBag.CultureInfoName)</th> 
        <th data-field="B_ConstructAvailable" data-align="center"   data-formatter="availableFormatter"  data-sortable="true" data-halign="center"> @MTQ.BLL.B_LocalService.GetWord("B_ConstructAvailable", @ViewBag.CultureInfoName)</th> 
            </tr>  
        </thead>    
    </table>    
   </div>     
        
   <div  class="managebtnlist  row-fluid "  >  
     <input type="button" name="btnCreate" class="btn green-meadow" value="新建" />   
     <input type="button" name="btnDisable" class="btn green-meadow" value="停用" />  
     <input type="button" name="btnEnable" class="btn green-meadow" value="启用" />   
   </div>     
</div>        
 <!-- END PAGE HEADER-->       
<div id="B_ConstructCreate" class="modal fade"  data-width="700"   data-backdrop="static" data-keyboard="false">        
    <div class="modal-content">        
        <div class="modal-header">        
             <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>       
            <h4 class="modal-title">Create</h4>        
         </div>       
        <div class="modal-body">        
         </div>       
      </div>      
    </div>        
        
        
        
        
        
        

